﻿/************************* UTILITIES ************************/
/********************** END - UTILITIES *********************/



/************************* MAIN FORM ***********************/
function efscrm_phonecall_onLoad()
{
	// update attributes layout
	efscrm_phonecall_openWFDialogExample();
}
/*********************** END - MAIN FORM ********************/


/************************* ATTRIBUTES ***********************/

// efscrm_phonecall_openWFDialogExample
function efscrm_phonecall_openWFDialogExample()
{
	// If on a create form then save and reload sot he dialog can open
	if(Xrm.Page.ui.getFormType() == 1)
	{
		//Xrm.Page.data.entity.save(null);
		return;
	}
	
	window.open("/" + Xrm.Page.context.getOrgUniqueName() + "/cs/dialog/rundialog.aspx?DialogId=%7bD26B0B74-DAD5-42C2-9148-C8F4333AF6C0%7d&EntityName=phonecall&ObjectId=" + Xrm.Page.data.entity.getId());
}

/********************** END - ATTRIBUTES ********************/


/************************ LEFT PANE *************************/
/********************* END - LEFT PANE **********************/